package com.industrial.premu.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.industrial.common.core.annotation.Excel;
import com.industrial.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 亩产自定义指标对象 pre_mu_custom_indicator
 * 
 * @author ZhouS
 * @date 2024-01-23
 */
public class PreMuCustomIndicatorDto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 年度 */
    @Excel(name = "年度")
    private String year;

    /** 区县 */
    @Excel(name = "区县")
    private String county;

    /** 企业类型 */
    @Excel(name = "企业类型")
    private String companyType;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 权重 */
    @Excel(name = "权重")
    private BigDecimal weight;

    /** 基准值 */
    @Excel(name = "基准值")
    private BigDecimal baseline;

    /** 映射字段 */
    @Excel(name = "映射字段")
    private String mappingColumn;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 删除标记 */
    private String delFlag;
    /**分值 */
    private String indicatorValues;

    private String companyName;

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getIndicatorValues() {
        return indicatorValues;
    }

    public void setIndicatorValues(String indicatorValues) {
        this.indicatorValues = indicatorValues;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setYear(String year) 
    {
        this.year = year;
    }

    public String getYear() 
    {
        return year;
    }
    public void setCounty(String county) 
    {
        this.county = county;
    }

    public String getCounty() 
    {
        return county;
    }
    public void setCompanyType(String companyType) 
    {
        this.companyType = companyType;
    }

    public String getCompanyType() 
    {
        return companyType;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setBaseline(BigDecimal baseline) 
    {
        this.baseline = baseline;
    }

    public BigDecimal getBaseline() 
    {
        return baseline;
    }
    public void setMappingColumn(String mappingColumn) 
    {
        this.mappingColumn = mappingColumn;
    }

    public String getMappingColumn() 
    {
        return mappingColumn;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("year", getYear())
            .append("county", getCounty())
            .append("companyType", getCompanyType())
            .append("code", getCode())
            .append("name", getName())
            .append("unit", getUnit())
            .append("description", getDescription())
            .append("weight", getWeight())
            .append("baseline", getBaseline())
            .append("mappingColumn", getMappingColumn())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .append("remarks", getRemarks())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
